﻿using System;
using Acaweb.Data.Contracts;
using Acaweb.Model.Entities;
using Acaweb.Model.Entities.DatosCompuestos;
using Acaweb.Componentes.Contracts;
using System.Collections.Generic;
using System.Linq;

namespace Acaweb.Componentes
{
    public class SessionsService : BaseService, ISessionsService
    {
        ISessionsDao _SessionsDao;

        public ISessionsDao SessionsDao
        {
            get { return _SessionsDao; }
            set { _SessionsDao = value; }
        }

        public Sessions GetById(string SessionId)
        {
            return SessionsDao.GetById(SessionId);
        }

        public void Create(Sessions Session)
        {
            SessionsDao.Save(Session);
        }
    }
}